import http from "../../utils/index";

/**
 * 查找组织列表
 * @param param
 * @returns {*}
 */
export function pager(param = {}) {
    return http.post("api/sys/organization/pager", param)
}

/**
 * 查找详细
 * @param id
 * @returns {*}
 */
export function details(id) {
    return http.get("api/sys/organization/details/"+id);
}


/**
 * 查找组织树形
 * @returns {*}
 */
export function listTree() {
    return http.get("api/sys/organization/listTree");
}

/**
 * 编辑组织机构
 * @param param
 * @returns {*}
 */
export function save(param = {}) {
    return http.put("api/sys/organization/save", param);
}

/**
 * 删除组织
 * @param ids
 * @returns {*}
 */
export function remove(ids) {
    return http.delete("api/sys/organization/remove/"+ids)
}
